<template>
  <div>
    <!-- 获取子组件 -->
    <hmBody ref="sonForm"></hmBody>
    <input type="submit" @click="submitForm" />
  </div>
</template>

<script>
import hmBody from './components/hmBody'
export default {
  components: {
    hmBody,
  },
  data() {
    return {}
  },
  methods: {
    submitForm() {
      this.$refs.sonForm.add()
    },
  },
}
</script>

<style scoped></style>
